import request from '@/utils/request'

// 获取抢单用户信息
// export const grabUser = (data) => {
// 	return request({
// 		method: 'GET',
// 		 url: '/orderApi/user/personal',
// 	}, data);
// }

// 获取抢单订单数据
export const grabList = (data,sign) => {
	return request({
		method: 'GET',
		 url: '/transminApi/orderApi/history/list',
		 header: {
		 	'Sign': sign
		 },
	}, data);
}

// 查询订单上传配置信息
export const queryConfiguration = (data,sign) => {
	return request({
		method: 'POST',
		 url: '/transminApi/orderApi/orderPickup/getPickupInfo',
		 header: {
		 	'Sign': sign
		 },
	}, data);
}

// 二维码上传
export const unloadEwm  = (data,sign) => {
	return request({
		method:'POST',
		url:'/transminApi/orderApi/order/setPickupInfo',
		header: {
			'Sign': sign
		},
	},data)
}

// 纠纷凭证上传
export const unloadDispute = (data,sign) => {
	return request({
		method:'POST',
		url:'/transminApi/orderApi/evidence/add',
		header: {
			'Sign': sign
		},
	},data)
}

// 查看上传凭证
export const lookDispute = (data,sign) => {
	return request({
		method:'GET',
		url:`/transminApi/orderApi/evidence/${data.id}`,
		header: {
			'Sign': sign
		},
	},data)
}
export const getDisputeDetails = (data,sign) => {
	return request({
		method:'GET',
		url:`/transminApi/orderApi/evidence/${data.orderId}`,
		header: {
			'Sign': sign
		},
	},data)
}

// 下单失败
export const orderFailed = (data,sign) => {
	return request({
		method: 'GET',
		 url: `/transminApi/orderApi/order/failed`,
		 header: {
		 	'Sign': sign
		 },
	}, data);
}